import { Injectable } from '@nestjs/common';

@Injectable()
export class GlobalRsaKeyPairService {
  private rsaPublicKey: string;
  private rsaPrivateKey: string;

  setRsaKeys(publicKey: string, privateKey: string): void {
    this.rsaPublicKey = publicKey;
    this.rsaPrivateKey = privateKey;
  }

  getRsaPublicKey(): string {
    return this.rsaPublicKey;
  }

  getRsaPrivateKey(): string {
    return this.rsaPrivateKey;
  }
}
